Creating a Mathematical Program
Description
To create a new mathematical program in the Model Tree:
Select the position in a Declaration Section where the new mathematical program should be inserted
From the Edit menu select Insert – Other (or press the
<Insert>
key)In the dialog box select
Mathematical program and press OK
Enter a name for the new mathematical program
Press
<Enter>
to create the new mathematical program (or press<Esc>
to abort the operation)
The newly created mathematical program is not yet ready for use, because you have to specify some mandatory attributes. To modify the attributes of the newly created mathematical program:
Press
<Enter>
or double click on the mathematical program.
The most commonly used attributes of a mathematical program are discussed below.
OBJECTIVE
: TheOBJECTIVE
attribute defines the variable that should be optimized for when solving the mathematical program. The specified variable should be a free, scalar variable. Thewizard will let you select a scalar variable from your model.
DIRECTION
: TheDIRECTION
attribute specifies whether the mathematical program describes a minimization or a maximization problem. Thewizard will let you select either
minimizing
ormaximizing
.VARIABLES
: TheVARIABLES
attribute is used to specify the set of variables that are to be considered in the mathematical program. Its contents can either be empty (in which case the predefined setAllVariables
is assumed) or a subset ofAllVariables
. Thewizard will display an Identifier Selection Dialog box containing all sets that are a subset of
AllVariables
.CONSTRAINTS
: TheCONSTRAINTS
attribute is used to specify the set of constraints that are to be considered in the mathematical program. Its contents can either be empty (in which case the predefined setAllConstraints
is assumed) or a subset ofAllConstraints
. Thewizard will display an Identifier Selection Dialog box containing all sets that are a subset of
AllConstraints
.TYPE
: TheTYPE
attribute specifies the type of mathematical program. The type is used to determine the type of solver that will be used when solving the mathematical program. Thewizard will display a set of radio buttons, one for every possible type in AIMMS. Note that the ability to use a particular solver is determined by your AIMMS license. The contents of your AIMMS license can be seen with the AIMMS license viewer.
VIOLATION PENALTY
: With the Violation Penalty attribute you can instruct AIMMS to automatically add artificial terms to the constraints of your mathematical program to help resolve and/or track infeasibilities in your mathematical program.
Learn more about